const express = require('express')
const cors = require('cors')

const app = express()
app.use(cors())

app.use((req, res) => {
  res.json({
    code: 0,
    data: [
      {
        id: 1,
        name: 'jack'
      }
    ]
  })
})

app.listen(3000, () => console.log('3000 port'))
